package cn.edu.sgu.www.mhxysy.function.computer.attribute;

import cn.edu.sgu.www.mhxysy.function.computer.Computer;

import java.util.Map;
import java.util.function.Function;

/**
 * 属性计算器接口
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface AttributeComputer extends Computer, Function<String, Map<String, Integer>> {

    /**
     * 计算方法
     * @param param String
     * @return Map<String, Integer>
     */
    default Map<String, Integer> compute(String param) {
        return apply(param);
    }

}